<%--
  Created by IntelliJ IDEA.
  User: 40334
  Date: 2023/2/6
  Time: 21:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>

    <link rel="stylesheet" href="styles/common.css"/>
</head>
<body>
<div class="page-content">
    <div class="content-nav">
        个人中心 > <a href="notifications">最新通知</a>
    </div>
    <table class="listtable">
        <caption>
            未来7天我要参加的会议:
        </caption>
        <tr class="listheader">
            <th style="width:300px">会议名称</th>
            <th>会议室</th>
            <th>起始时间</th>
            <th>结束时间</th>
            <th style="width:100px">操作</th>
        </tr>
        <c:forEach var="meeting" items="${requestScope.onList}">
            <tr>
                <td>${meeting.meetingName}</td>
                <td>${meeting.roomName}</td>
                <td>${meeting.startTime}</td>
                <td>${meeting.endTime}</td>
                <td>
                    <a class="clickbutton" href="MainServlet?dest=meeting.meetingDetailPrev&meetingno=${meeting.meetingno}">查看详情</a>
                </td>
            </tr>
        </c:forEach>

    </table>
    <table class="listtable">
        <caption>
            已取消的会议:
        </caption>
        <tr class="listheader">
            <th style="width:300px">会议名称</th>
            <th>会议室</th>
            <th>起始时间</th>
            <th>结束时间</th>
            <th>取消原因</th>
            <th style="width:100px">操作</th>
        </tr>
        <c:forEach var="meeting" items="${requestScope.offList}">
            <tr>
                <td>${meeting.meetingName}</td>
                <td>${meeting.roomName}</td>
                <td>${meeting.startTime}</td>
                <td>${meeting.endTime}</td>
                <td>未实装，没有这个字段</td>
                <td>
                    <a class="clickbutton" href="MainServlet?dest=meeting.meetingDetailPrev&meetingno=${meeting.meetingno}">查看详情</a>
                </td>
            </tr>
        </c:forEach>

    </table>

</div>

</body>
</html>
